setTextListStyle

abstract fun setTextListStyle(block: DesignBlock, listStyle: ListStyle, paragraphIndex: Int = -1, listLevel: Int? = null)

Sets the list style for a specific paragraph or all paragraphs of a text block. Required scope: "text/character"

Parameters

block

the text block whose list style should be changed.

listStyle

the list style to apply.

paragraphIndex

the 0-based index of the paragraph to modify. Negative values apply to all paragraphs.

listLevel

optional list nesting level to set atomically with the list style (0 = outermost). When null the existing list level of each paragraph is preserved. Has no visual effect when listStyle is ListStyle.None.